Automattic\WooCommerce\StoreApi\Utilities\OrderController B

Total Complexity 80
Dependencies 8
Dependents 3
Total lines 640
Lines of code 400
Logical lines of code 158
Comment lines 171
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
get_failed_order_stock_error()
A
44 16 43
validate_address_fields()
A
42 10 55
validate_addresses()
A
42 9 57
update_line_items_from_cart()
S
50 6 30
validate_coupons()
S
47 5 37
validate_selected_shipping_methods()
S
59 5 15
update_order_from_cart()
S
49 4 30
validate_order_key()
S
68 5 6
validate_email()
S
56 3 20
sync_customer_data_with_order()
S
49 2 31
validate_coupon_email_restriction()
S
68 4 6
validate_coupon_usage_limit()
S
63 4 10
create_order_from_cart()
S
58 2 16
update_addresses_from_cart()
S
51 1 27
validate_allowed_country()
S
79 1 3
get_coupon()
S
80 1 3
default_order_status()
S
82 1 3
validate_order_before_payment()
S
67 1 8